package org.x.casemodule.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import org.x.casemodule.enums.ResponseStatusEnum;
import org.x.casemodule.enums.RoleEnum;

import java.lang.Long;
import java.lang.Object;

/**
 * 事件参与者表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@Table(value = "schedule_participant",dataSource = "caseDS")
public class ScheduleParticipantEntity {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 关联事件ID
     */
    @Column(value = "event_id")
    private Long eventId;

    /**
     * 参与者ID
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 参与角色
     */
    @Column(value = "role")
    private RoleEnum role;

    /**
     * 响应状态
     */
    @Column(value = "response_status")
    private ResponseStatusEnum responseStatus;


}